package com.study.djl.consumer.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;

@Service

public class ZkService {

    @Autowired
    private RestTemplate restTemplate;

    public String hello( String name){
        String returnStr = restTemplate
                .getForObject("http://provider-service/provider/hello/{name}", String.class, name);
        return returnStr;
    }
}
